﻿using System;
using Basic.第一章;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DesignPatternDemoTest.基础拾遗测试
{
    [TestClass]
    public class UnitTest2
    {
        [TestMethod]
        public void TestMethod1()
        {
            var message = string.Empty;
            var list = new InvokeList();
            list.Invoke();
            Assert.AreEqual("world,hello", list.Message[0] + list.Message[1] + list.Message[2]);
            Assert.AreEqual("Hello,world", list[0] + list[1] + list[2]);
        }
    }
}
